package cn.com.demo.tp40.service.feign;

import feign.hystrix.FallbackFactory;
import org.springframework.stereotype.Component;

@Component
public class FeignImpl implements FallbackFactory<FeignService> {
    @Override
    public FeignService create(Throwable throwable) {
        return new FeignService() {
            @Override
            public boolean deletebyid(int id) {
                return true;
            }
        };
    }
}
